Skip to main content

VGNode Class

Description:

  The class for creating VGNode instances.

__call

Type: Metamethod.

Description:

  The constructor function for creating a VGNode instance.

Signature:

metamethod __call: function(
self: VGNodeClass,
width: number,
height: number,
scale?: number --[[1.0]],
edgeAA?: integer --[[1]]
): VGNode

Parameters:

ParameterTypeDescription
widthnumberThe width of the node's frame buffer texture.
heightnumberThe height of the node's frame buffer texture.
scalenumberThe scale of the node. Default is 1.0.
edgeAAintegerThe edge anti-aliasing factor. Default is 1.